<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>发现|团购网</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="shortcut icon" href="img/tuangou.ico" />
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="css/found.css"/>
	</head>
	<body>
		<!-- 头部s -->
		<header class="clearfix">
			<div class="back fl"><a href="https://wei8ba.gitee.io/shop/homepage.html">Back</a></div>
			<div class="selectBar fr">
				<select name="">
					<option value="">广州市</option>
					<option value="">佛山市</option>
					<option value="">深圳市</option>
				</select>
			</div>
			<div class="title">发现</div>
		</header>
		<!-- 头部e -->
		
		<!-- 主体s -->
		<section>
			<!-- 搜索部分 -->
			<div class="search">
				<div class="searchBar ">
				<input type="search" placeholder="请输入商品名称"/>
			    <input type="image" src="img/fangdajing.png"/>
			</div>
				<div >大家都在搜</div>
				<div class="word">
					<span>寿司</span>
					<span>羽毛球</span>
					<span>火锅</span>
					<span>游泳馆</span>
					<span>电影</span>
					<span>周黑鸭</span>
					<span>KTV</span>
					<span>肯德基</span>
				</div>
			</div>
			<!-- 热门搜索 -->
			<div class="hot">
				<!-- 栏目名 -->
				<div class="title clearfix">
					<img class="fl hot" src="img/hot.PNG"/>
					<p class="fl p1">热门搜索</p>
					<img class="fr more" src="img/more.png"/>
					<p class="fr p2">更多</p>
				</div>
				<!-- 图片 -->
				<div class="hot-img clearfix">
					<div class="left fl">
						<img cla src="img/left1.jpg" alt="" />
					</div>
					<div class="top fl">
						<img src="img/top.jpg" alt="" />
					</div>
					<div class="bottom1 fl">
						<img src="img/bottom1.jpg" alt="" />
					</div>
					<div class="bottom2 fl">
						<img src="img/bottom2.jpg" alt="" />
					</div>
					 
				</div>
			</div>
			<!-- 推荐搜索 -->
			<div class="tuijian">
				<!-- 栏目名 -->
				<div class="title clearfix">
					<img class="fl star" src="img/star.png"/>
					<p class="fl p1">推荐搜索</p>
					<img class="fr more" src="img/more.png"/>
					<p class="fr p2">更多</p>
				</div>
				<!-- 图片 -->
				<div class="tuijian-img">
					<img src="img/tuijian1.jpg" alt="" />
					<img src="img/tuijian2.jpg" alt="" />
					<img src="img/tuijian3.jpg" alt="" />
				</div>
			</div>
		</section>
		<!-- 主体e -->
		
		<!-- 尾部s -->
		<footer>
			<a class="foot" href="https://wei8ba.gitee.io/shop/homepage.html">
				<img class="homepage" src="img/homepage.png"/>
				<p>首页</p>
			</a>
			<a class="foot" href="https://wei8ba.gitee.io/shop/classification.html">
				<img class="classification" src="img/classification.png"/>
				<p>分类</p>
			</a>
			<a class="foot" href="https://wei8ba.gitee.io/shop/found.html">
				<img class="found" src="img/found1.png"/>
				<p>发现</p>
			</div>
			<a class="foot" href="https://wei8ba.gitee.io/shop/my.html">
				<img class="my" src="img/my.png"/>
				<p>我的</p>
			</a>
		</footer>
		<!-- 尾部e -->
		
		<!-- 脚本 -->
		<script type="text/javascript">
			document.body.style.height = window.innerHeight + "px";
    
    /*动态改变根元素字体大小*/
    function recalc() {
    	//获取客户端宽度
        var clientWidth = document.documentElement.clientWidth;
        if(!clientWidth) return;
        // 字体大小   = 1个rem单位表示多少个像素（设备的宽度   /设计宽度）
        document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
        
    }

    function initRecalc() {
        recalc();
        // if(浏览器支持横竖屏切换的事件){横竖屏事件}else{ resize事件 }
        var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
        if(!document.addEventListener) return;
        window.addEventListener(resizeEvt, recalc, false);
        document.addEventListener('DOMContentLoaded', recalc, false);
    }
        initRecalc();

		</script>
	</body>
</html>
